﻿namespace KeRui.Common
{
    using FULLTUNNELCONTROLLib;
    using System;
    using System.Runtime.CompilerServices;

    public class qxtInterface
    {
        public IntPtr pt;
        public int vt;

        public string Send_message(string sDestcode, string sContent)
        {
            string str15;
            string str = "send";
            string username = "0512C00058718";
            string password = "320525";
            string ip = "218.94.58.243";
            string port = "9005";
            string sendtype = "1";
            string sourcecode = "02588888888";
            string destcode = sDestcode;
            string content = sContent;
            string comid = "1";
            string bNeedReceipt = "1";
            FullTunnelServiceControl control = new FullTunnelServiceControlClass();
            return control.SendBusinessPkg(ref str, ref username, ref password, ref sourcecode, ref destcode, ref ip, ref port, ref content, ref sendtype, ref comid, ref bNeedReceipt, out str15).ToString();
        }

        public string Test_link()
        {
            FullTunnelServiceControl control = new FullTunnelServiceControlClass();
            string username = "0512C00058718";
            string password = "320525";
            string ip = "218.94.58.243";
            string port = "9005";
            return control.StartAndManageConnect_User(ref username, ref password, ref ip, ref port).ToString();
        }

        public delegate void CallBack(string BS_flag, string BS_svalue1, string BS_svalue2, string BS_svalue3, string BS_svalue4, string BS_svalue5, string BS_svalue6, string BS_svalue7, string BS_svalue8);
    }
}

